package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FaceCollectionMapper;
import com.ruoyi.system.domain.FaceCollection;
import com.ruoyi.system.service.IFaceCollectionService;

/**
 * 人脸集Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-22
 */
@Service
public class FaceCollectionServiceImpl implements IFaceCollectionService 
{
    @Autowired
    private FaceCollectionMapper faceCollectionMapper;

    /**
     * 查询人脸集
     * 
     * @param id 人脸集主键
     * @return 人脸集
     */
    @Override
    public FaceCollection selectFaceCollectionById(Long id)
    {
        return faceCollectionMapper.selectFaceCollectionById(id);
    }

    /**
     * 查询人脸集列表
     * 
     * @param faceCollection 人脸集
     * @return 人脸集
     */
    @Override
    public List<FaceCollection> selectFaceCollectionList(FaceCollection faceCollection)
    {
        return faceCollectionMapper.selectFaceCollectionList(faceCollection);
    }

    /**
     * 新增人脸集
     * 
     * @param faceCollection 人脸集
     * @return 结果
     */
    @Override
    public int insertFaceCollection(FaceCollection faceCollection)
    {
        return faceCollectionMapper.insertFaceCollection(faceCollection);
    }

    /**
     * 修改人脸集
     * 
     * @param faceCollection 人脸集
     * @return 结果
     */
    @Override
    public int updateFaceCollection(FaceCollection faceCollection)
    {
        return faceCollectionMapper.updateFaceCollection(faceCollection);
    }

    /**
     * 批量删除人脸集
     * 
     * @param ids 需要删除的人脸集主键
     * @return 结果
     */
    @Override
    public int deleteFaceCollectionByIds(Long[] ids)
    {
        return faceCollectionMapper.deleteFaceCollectionByIds(ids);
    }

    /**
     * 删除人脸集信息
     * 
     * @param id 人脸集主键
     * @return 结果
     */
    @Override
    public int deleteFaceCollectionById(Long id)
    {
        return faceCollectionMapper.deleteFaceCollectionById(id);
    }
}
